package com.by.mapper;

import com.by.bean.params.PurchaseQuery;
import com.by.bean.pucharse.Purchase;
import com.by.common.crud.IMapper;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;
import java.util.Map;

@Mapper
public interface PurchaseMapper extends IMapper<Purchase> {
    /**
     * 根据年查询最大编码
     * @param year
     * @return
     */
    String queryMaxCode(String year);

    /**
     * 查询采购单列表
     * @return
     */
    List<Map> search(PurchaseQuery query);
}
